package com.hd.sup.core.runner;

import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.hd.common.constant.BizConstant;
import com.hd.common.utils.CollectionUtils;
import com.hd.common.utils.GenUtil;
import com.hd.common.utils.ValueUtils;
import com.hd.sup.config.redis.prefix.CacheKey;
import com.hd.sup.config.redis.utils.JedisUtil;
import com.hd.sup.modules.enterprise.model.Enterprise;
import com.hd.sup.modules.enterprise.service.IEnterpriseService;
import com.hd.sup.modules.vehicle.model.Vehicle;
import com.hd.sup.modules.vehicle.service.IVehicleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author chentl
 * @version V1.0
 * @Project 交通运输第三方监测平台
 * @Title SuperviseApplicationRunner.java
 * @Description 任务协同
 * @Package com.hd.sup.core.runner
 * @date 2020/12/24 10:30 上午
 * @Copyright: 深圳市宏电技术股份有限公司 All rights reserved.
 */
@Slf4j
@Component
@Order(1)
public class SuperviseApplicationRunner implements CommandLineRunner {


    @Resource
    private IEnterpriseService enterpriseService;


    @Override
    public void run(String... args) {

        //启动时 缓存车企静态信息
        enterpriseService.cacheStaticData();
    }
}